package com.itzhoun.controller;

import com.itzhoun.annotation.Log;
import com.itzhoun.enums.BusinessType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周楠
 * @Date 2022/08/09/下午 11:08
 */
@Slf4j
@RestController
public class HelloLogController {

    @GetMapping("/hello")
    @Log(businessType = BusinessType.OTHER, title = "你好aop")
    public String hello(@RequestParam String day) {
        return "hello" + day;
    }
}
